<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'loan_list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
		.content{width:600px;}
		.content ul{width:1000px;}
		.content ul li{float:left;width:120px;height:20px;}
	</style>
  </head>
  
  <body>
    <p><a href="/loan/toAddLoan.action">添加标的</a></p>
    <div class="content">
    <ul>
	    <li>标题</li>
	    <li>金额</li>
	    <li style="width:200px;">开始时间</li>
	    <li style="width:200px;">结束时间</li>
	    <li style="width:200px;">添加时间</li>
	    <li>操作</li>
	</ul>
    <s:iterator value="page.list">
    <ul>
	    <li><s:property value="title"/></li>
	    <li><s:property value="loanamount"/></li>
	    <li style="width:200px;display:block;"><s:date name="starttime" format="yyyy-MM-dd HH:mm:ss"/></li>
	    <li style="width:200px;display:block;"><s:date name="endtime" format="yyyy-MM-dd HH:mm:ss"/></li>
	    <li style="width:200px;display:block;"><s:date name="addtime" format="yyyy-MM-dd HH:mm:ss"/></li>
	    <li><a href="/">投标</a></li>
    </ul>
    </s:iterator>
    </div>
  </body>
</html>
